﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace isosceles_triangle
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Write("请输入行数：");
            int linemumber = int.Parse(Console.ReadLine());
            for (int i = 1; i <= linemumber; i++)
            {
                for (int j = 1; j <= linemumber-i; j++)
                {
                    Console.Write(" ");
                }
                for (int j = 1; j <= 2*i-1; j++)
                {
                    Console.Write("*");
                }
                Console.WriteLine("");
            }
            Console.ReadKey();
        }
    }
}
